package com.wisdytech.linkdcs.pda.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.wisdytech.common.bean.Filter;
import com.wisdytech.linkdcs.equipLifeCycle.malfunction.dto.MalfunctionSearchDto;
import com.wisdytech.linkdcs.equipLifeCycle.malfunction.model.MApplyRecord;
import com.wisdytech.linkdcs.equipLifeCycle.malfunction.model.MProcessRecord;
import com.wisdytech.linkdcs.equipLifeCycle.malfunction.model.MalfunctionDemo;
import com.wisdytech.linkdcs.equipLifeCycle.malfunction.model.MalfunctionRecord;
import com.wisdytech.linkdcs.equipLifeCycle.malfunction.vo.MRegisterVo;
import com.wisdytech.linkdcs.equipLifeCycle.malfunction.vo.MalfunctionVo;
import com.wisdytech.linkdcs.system.model.SysDict;
/**
 * 故障服务类
 * @author dlb
 *
 */
public interface IMalfunctionService {
	
	public PageInfo<MalfunctionDemo> listDemoByFilter(String malfunctionType, String malfunctionTitle, Filter filter);
	
	public boolean add(MalfunctionRecord record, String userName);
	
	public PageInfo<MalfunctionVo> selectAllMalfunctionLists(Filter filter, MalfunctionSearchDto dto);
	
	public MRegisterVo getRecordById(String pkId) ;
	
	public boolean addApplyRecord(MApplyRecord applyRecord, String username);
	
	public boolean addProcessRecord(MProcessRecord pReocrd,String username);
	
	public List<SysDict> getMalfunctionType();
	
	public List<SysDict> getMalfunctionReason();

}
